package com.atguigu.spzx.cart.api;

import com.atguigu.spyx.model.common.Result;
import com.atguigu.spyx.model.common.com.atguigu.spyx.model.entity.h5.CartItem;
import com.atguigu.spzx.cart.api.fallback.CartClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * @author LT
 * @create 2023-11-21-18:47
 */
@FeignClient(value = "service-cart" , fallback = CartClientFallback.class)
public interface CartClient {

    @GetMapping("/api/order/cart/auth/checkedCartList")
    public Result<List<CartItem>> checkedCartList();

    @DeleteMapping("/api/order/cart/auth/deleteCheckedCart")
    public Result deleteCheckedCart();

}
